local c4 = Instance.new("Tool") local c4mesh = Instance.new("SpecialMesh") c4mesh.MeshType = "FileMesh" c4mesh.MeshId = "rbxassetid://454801145" c4mesh.TextureId = "rbxassetid://454801149" c4mesh.Scale = Vector3.new(0.002, 0.002, 0.002) local handle = Instance.new("WedgePart") handle.Parent = c4 handle.Name = "Handle" handle.Size = Vector3.new(1.5,.7,1.5) c4mesh.Parent = handle local planted local t = Instance.new("Attachment",handle) t.Position = Vector3.new(0.2, 0.2, 0) local a=Instance.new"ParticleEmitter" a.Lifetime=NumberRange.new(0.3,0.3) a.Transparency=NumberSequence.new(0,1) a.LightEmission=0.5 a.Color=ColorSequence.new(Color3.fromRGB(255,0,0)) a.Speed=NumberRange.new(0,0) a.Brightness=2 a.LockedToPart = true a.Enabled=false a.ZOffset=1 a.Rate=100 a.Parent = t local b=a:Clone() b.Lifetime=NumberRange.new(1,1) b.Color=ColorSequence.new(Color3.fromRGB(0, 170, 0)) b.Name = "Detonate" b.Parent = t local prs = Instance.new("Sound") prs.Parent = planted prs.Volume = 1.5 prs.PlayOnRemove = true prs.SoundId = "rbxassetid://7818577205" local ye = false function c4add(p) local att = p.Attachment local particle = att.ParticleEmitter local dparticle = att.Detonate local tickint = 1 local function update() tickint = tickint *.98 particle:Emit(1) end local sss = Instance.new("Sound") sss.Parent = planted sss.Volume = 2 sss.SoundId = "rbxassetid://9117341652" sss.PlayOnRemove = true local proxi = Instance.new("ProximityPrompt",p) proxi.RequiresLineOfSight = false proxi.HoldDuration = 10 proxi.ActionText = "Defuse bomb" proxi.Triggered:Connect(function() p:Destroy() end) while tickint > .15 and p:IsDescendantOf(game) and not ye do wait(tickint) update() prs.Parent = p prs.Parent = nil end if p:IsDescendantOf(game) then ye = false proxi:Destroy() sss.PlayOnRemove = false local s = Instance.new("Sound") s.Parent = planted s.Volume = 2 s.SoundId = "rbxassetid://1127337219" s:Play() s.TimePosition = 43.55 game:GetService("Debris"):AddItem(s,2.14) dparticle:Emit(1) repeat task.wait() until s:IsDescendantOf(game) == false local s = Instance.new("Sound") s.Parent = planted s.Volume = 3 s.SoundId = "rbxassetid://7818612635" s:Play() p.Transparency = 1 p.Anchored = true p.CanCollide = false local explosion = Instance.new("Explosion") explosion.Parent = workspace explosion.Position = p.Position explosion.BlastRadius = 80 explosion.BlastPressure = 900000 explosion.Hit:Connect(function(v,dist) v.Anchored = false if v.Parent:FindFirstChildWhichIsA("Humanoid") and not v.Parent:FindFirstChildWhichIsA("ForceField") then v:BreakJoints() elseif not v.Parent:FindFirstChildWhichIsA("Humanoid") and not v.Parent:IsA("Accoutrement") then v:BreakJoints() end end) game:GetService("Debris"):AddItem(p,7) c4mesh.MeshId = "rbxassetid://454801145" c4mesh.TextureId = "rbxassetid://454801149" c4mesh.Scale = Vector3.new(0.002, 0.002, 0.002) else end end c4.Activated:Connect(function() if planted == nil or planted:IsDescendantOf(game) == false then planted = handle:Clone() planted.Parent = script planted.CanCollide = true planted:BreakJoints() c4add(planted) end end) c4.Parent = owner.Backpack